#ifndef _DATA_TABLEFILL_H_
#define _DATA_TABLEFILL_H_
#include <stdio.h>
#include "dfthread.h"
#define DF_GENERATE_NUM 100000


void table_watering(char* relname, int size_gb);
void page_hack(char* buff, int pages, uint32 pageno, uint64 *unique_num, uint32 unique_type);
void copy_1G_file(char* filepath, int file_no, MyThreadHandle *cur_thread);
void show_table_size(char* relname);
void read_table_def(char* conf_path);
char* read_tup_realdata(char* page_buf, int offnum);

int random_int_maker(void);
int16 random_int16_maker(void);
int64 random_int64_maker(void);
char* random_string_maker(void);
char* random_float_maker(void);
char* random_timestamp_maker(void);
char* random_date_maker(void);
char* random_time_maker(void);
char* random_bool_maker(void);


#endif